<?
	require_once("../cBasic/950cons.php");
	$edittype=$_GET['edittype'];
	$empid=$_GET['empid'];
	$skillid=$_GET['skillid'];
	
	switch ($_GET['edittype']){
		case 'del':
			$sQuery= "DELETE FROM emp_skill where EmpID = ".$empid." and SkillID = ".$skillid;
			break;
		case 'add':
			$sQuery= "INSERT INTO emp_skill (EmpID, SkillID) value ('".$empid."','".$skillid."')";
			break;
	}
	mysql_query( $sQuery, $con ) or die(mysql_error());
	mysql_close($con);
	
?>